﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;

namespace WpfApp1
{
    public static class CardAssist
    {
        public static readonly DependencyProperty CanExpanderProperty = DependencyProperty.RegisterAttached(
        "CanExpander", typeof(bool), typeof(CardAssist), new FrameworkPropertyMetadata(true));

        public static void SetCanExpander(DependencyObject element, bool value)
            => element.SetValue(CanExpanderProperty, value);

        public static bool GetCanExpander(DependencyObject element)
            => (bool)element.GetValue(CanExpanderProperty);



        public static readonly DependencyProperty CornerRadiusProperty = DependencyProperty.RegisterAttached(
       "CornerRadius", typeof(CornerRadius), typeof(CardAssist), new FrameworkPropertyMetadata(null));

        public static void SetCornerRadius(DependencyObject element, CornerRadius value)
            => element.SetValue(CornerRadiusProperty, value);

        public static CornerRadius GetCornerRadius(DependencyObject element)
            => (CornerRadius)element.GetValue(CornerRadiusProperty); 
    }
}
